<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	exclude-result-prefixes="xs xsi">

  <xsl:template match="Referral">
    <div class="boxed-section" id="{local-name()}">
      <h2>Referral</h2>

      <label>Referral Route</label>
      <span><xsl:value-of select="route"/></span>

      <br />

      <label>Has person consented to referral</label>
      <span><xsl:value-of select="referralconsent"/></span>

      <br />

      <label>Is the person aware of the referral</label>
      <span><xsl:value-of select="referralaware"/></span>

      <br />

      <label>Person making the referral</label>
      <span>
        <xsl:value-of select="referrer/type"/>
      </span>

      <br />

      <label>Date</label>
      <span>
        <xsl:call-template name="standard_date">
          <xsl:with-param name="date" select="date"/>
        </xsl:call-template>
      </span>

      <br />

      <label>Referrer name &amp; contact details</label>
      <span>
        <xsl:value-of select="referrer/details"/>
      </span>

      <br />


     
      
    
    </div>
  </xsl:template>

</xsl:stylesheet>
